home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: cwi.nl!dik
- From: dik@cwi.nl (Dik T. Winter)
- Subject: Re: Finding a prime number
- Message-ID: <DM69Hu.871@cwi.nl>
- Sender: news@cwi.nl (The Daily Dross)
- Nntp-Posting-Host: chrysant.cwi.nl
- Organization: CWI, Amsterdam
- References: <4e875s$nqk@reader2.ix.netcom.com> <4eqvk5$7tn@news.microsoft.com>
- Date: Fri, 2 Feb 1996 23:34:42 GMT
-
- In article <4eqvk5$7tn@news.microsoft.com> a-cnadc@microsoft.com (Dann Corbit) writes:
- > In article <4e875s$nqk@reader2.ix.netcom.com>, advtr@ix.netcom.co says...
- [ if a mod 2 = a mod 3 = a mod 4 ... = a mod 9 = 0 then prime ]
- ...
- > You also quit
- > testing too soon for any number bigger than 49. If you want to
- > use modulo testing, you should divide by all primes up to the
- > square root of the input number.
-
- Not 49, 120. The test is with all primes up to the square root of 120.
- --
- dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924098
- home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
-